package com.gemcoder.system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.util.Map;
import javax.annotation.Resource;
import com.gemcoder.system.bo.Result;
import com.gemcoder.system.service.AlarmlistService;
import cn.hutool.core.util.StrUtil;
import java.util.Map;
import cn.hutool.core.util.ObjectUtil;

@Controller
@RequestMapping("/Alarmlist")
public class AlarmlistController{

  @Resource private AlarmlistService AlarmlistService;

  

	@RequestMapping(value = "/getAlarmData")
	@ResponseBody
	public Result getAlarmData(@RequestBody(required = false) Map<String,Object> paramMap) {
		
		//如果有需要校验的入参, 请在这里补充代码进行校验

    //调用service层的代码

    	return AlarmlistService.getAlarmData(paramMap);
	}

	@RequestMapping(value = "/exportAlarmData")
	@ResponseBody
	public Result exportAlarmData(@RequestBody(required = false) Map<String,Object> paramMap) {

		//如果有需要校验的入参, 请在这里补充代码进行校验

		//调用service层的代码

		return AlarmlistService.exportAlarmData(paramMap);
	}

	@RequestMapping(value = "/updateAlarmStatus")
	@ResponseBody
	public Result updateAlarmStatus(@RequestBody(required = false) Map<String,Object> paramMap) {

		//如果有需要校验的入参, 请在这里补充代码进行校验

		//调用service层的代码

		return AlarmlistService.updateAlarmStatus(paramMap);
	}
   

	@RequestMapping(value = "/getAllAlarmData")
	@ResponseBody
	public Result getAllAlarmData(@RequestBody(required = false) Map<String,Object> paramMap) {
		
		//如果有需要校验的入参, 请在这里补充代码进行校验

    //调用service层的代码

    	return AlarmlistService.getAllAlarmData(paramMap);
	}
   

	@RequestMapping(value = "/getAlarmDataByPage")
	@ResponseBody
	public Result getAlarmDataByPage(@RequestBody(required = false) Map<String,Object> paramMap) {
		
		//如果有需要校验的入参, 请在这里补充代码进行校验

    //调用service层的代码

    	return AlarmlistService.getAlarmDataByPage(paramMap);
	}
   

}
